<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>新闻管理</title>
</head>
<body>
	<center>
		@include('test.menu')
		<table width="900" border="1">
			<tr>
				<th>ID</th>
				<th>标题</th>
				<th>用户</th>
				<th>更新时间</th>
				<th>操作</th>
			</tr>
			@foreach ($data as $v)
			<tr>
				<td>{{$v->id}}</td>
				<td>{{$v->title}}</td>
				<td>{{$v->username}}</td>
				<td><?=date('Y-m-d H:i:s',$v->updatetime);?></td>
				<td>
					<a href="{{url("test/delete/{$v->id}")}}">删除</a>
					<a href="{{url("test/{$v->id}/edit")}}">编辑</a>
				</td>
			</tr>
			@endforeach
		</table>
	</center>
</body>
</html>